<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form>
    <div th:include="common/inc"></div>
    <div id="boyEnd"></div>
    <input type="hidden" name="cpage" id="page">
</form>
</body>
<script>
    $(function (){
        serach(1);
    })
    function serach(cpage) {
        $("#page").val(cpage);
        $.ajax({
            url:"boyEnd",
            type:"get",
            data:$("form").serialize(),
            dataType:"html",
            success:function (data) {
                $("#boyEnd").html(data);
            },error:function () {
                alert("boyEnd失败");
            }
        })
    }
</script>
</html>